<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<css file="__STATIC__/hdjs/hdjs.css"/>
	<js file="__STATIC__/hdjs/hdjs.min.js"/>
</head>
<body>
	
	<div class="hd-menu-list">
	    <ul>
	        <li class="active"><a href="{|U:'Article/index'}">文章列表</a></li>
	        <li><a href="{|U:'Article/add'}">添加文章</a></li>

	    </ul>
	</div>
	
	<table class="hd-table hd-table-list">
	    <thead>
	    <tr>
	        <td>AID</td>
	        <td>缩略图</td>
	        <td>文章标题</td>
	        <td>所属栏目</td>
	        <td>已选标签</td>
	        <td>操作</td>
	    </tr>
	    </thead>
	    <tbody>
	    
	    <foreach from="$data" key="$k" value="$d">
		    <tr>
		    	<td>{$d.aid}</td>
		    	<td><img class="hd-w50 hd-h50" src="__ROOT__/{$d['thumb']}" alt=""></td>
		        <td>{$d.title}</td>
		        <td>{$d.cname}</td>
		        <td>
		        	<list from="$d['tags']" name="$t">
		        		{$t.tname}&emsp;
		        	</list>
		        </td>
		        <td class="hd-w100">
		            <a href="{|U:'Article/edit',array('aid'=>$d['aid'])}">修改</a> |
		           
		        </td>
		    </tr>
		</foreach>

	    </tbody>
	</table>
	
</body>
</html>